/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mnstudent.datatranferobject;

import java.util.ArrayList;
import java.util.Objects;

/**
 *
 * @author lee
 */
public class PrerequisiteSubjectDTO {

    private String m_SubjectID;
    private String m_NameOfSubject;

    public String getSubjectID() {
        return this.m_SubjectID;
    }
    
    public void setSubjectID(String strSubjectID) {
        this.m_SubjectID = strSubjectID;
    }
    
    public String getNameOfSubject() {
        return this.m_NameOfSubject;
    }

    public void setNameOfSubject(String strNameOfSubject) {
        this.m_NameOfSubject = strNameOfSubject;
    }
    
    public PrerequisiteSubjectDTO() {

    }

    public PrerequisiteSubjectDTO(String strSubjectID, String strNameOfSubject) {
        this.m_SubjectID = strSubjectID;
        this.m_NameOfSubject = strNameOfSubject;
    }
    
    

    @Override
    public String toString() {
        return m_NameOfSubject;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 43 * hash + Objects.hashCode(this.m_SubjectID);
        hash = 43 * hash + Objects.hashCode(this.m_NameOfSubject);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PrerequisiteSubjectDTO other = (PrerequisiteSubjectDTO) obj;
        if (!Objects.equals(this.m_SubjectID, other.m_SubjectID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfSubject, other.m_NameOfSubject)) {
            return false;
        }
        return true;
    }

}
